<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
  <f:layout name="Default" />

  This template displays a NEW form for the current domain object.

  If you modify this template, do not forget to change the overwrite settings
  in /Configuration/ExtensionBuilder/settings.yaml:
    Resources:
      Private:
        Templates:
          New.html: keep

  Otherwise your changes will be overwritten the next time you save the extension in the extension builder

  <f:section name="content">
  <style>
  	#add_new_invoice label{font-weight: unset;font-size: 15px;}
  </style>
	<f:form action="create" id="add_new_invoice"  name="invoice" object="{invoice}">
		<fieldset>
			<legend>发票申请</legend>
		
			<div class="form-group col-md-6">
				<label>捐赠渠道<span class="mandatory">*</span></label>
				<div>
					<f:form.select class="form-control" property="channelid" options="{channels}" optionValueField="uid" optionLabelField="name" prependOptionLabel="--请选择--" /> 	
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>捐赠时间<span class="mandatory">*</span></label>
				<div class='input-group date form_date' id='datetimepicker6'>
				      <f:form.textfield property="donatetime" readonly="readonly" class="form-control" placeholder="请填写准确日期" />
				      <span class="input-group-addon" id="basic-addon1"><i class="fa fa-calendar"></i></span>
				</div>
				<script type="text/javascript">
			    $(function () {
			    	$('.form_date').datetimepicker({
			            language:  'zh-CN',
			            format: 'yyyy-mm-dd',
			            weekStart: 1,
			    		autoclose: 1,
			    		startView: 2,
			    		minView: 3,
			    		forceParse: 0
			        });
			    });
			</script> 
			</div>
			
			<div class="form-group col-md-6 ">
				<label>税号<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="spare1" class="form-control" />
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>捐款金额（元）<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="money" class="form-control" />
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>票据抬头<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="header" class="form-control" placeholder="请确保与捐赠人名称一致"/>
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>邮寄地址<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="address" class="form-control" />
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>邮政编码<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="postcode" class="form-control" />
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>联系人<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="people" class="form-control" />
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>联系电话<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="telphone" class="form-control" />
				</div>
			</div>
			
			<div class="form-group col-md-6 ">
				<label>邮箱<span class="mandatory">*</span></label>
				<div>
					<f:form.textfield property="mail" class="form-control" />
				</div>
			</div>
		</fieldset>
		<div class="form-buttons" style="text-align: center;">
			<f:form.submit value="提交" class="btn btn-primary"/>
		</div>
	</f:form>
  </f:section>
</html>